#!/bin/sh

# 初始化创世区块
geth init ./genesis.json
# 导入账户
geth account import ./nodekey.txt --password ./password.txt
# 启动区块链
geth --syncmode 'full' --port 30303 --http --http.addr '172.26.136.114' --http.port 8545 --http.corsdomain="*" --http.api 'admin,debug,personal,eth,net,web3,txpool,miner,congress' --ws --ws.addr '172.26.136.114' --ws.port 8546 --ws.origins '*' --ws.api 'admin,debug,personal,eth,net,web3,txpool,miner,congress' --networkid 1000 -unlock 7B2D6124792b17c7B6Ef29D3Fa7192d6887B35c8 --password ./password.txt --nodekey ./nodekey.txt --allow-insecure-unlock --mine --miner.gastarget 120000000 --miner.gaslimit 120000000 --bootnodes 'enode://94288b8f02cb45ab7bcc3503edc9d32e9b4cb5142ff1fcd7e8f344a4c4b5f628e671ce3a16f99c39e509d70b90ab9d5ce19c785cbf9cd4dd2013dc98afbd4ce1@[172.26.136.113]:30303'